package com.endpoint.author.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Project: endpoint
 * @Name: MybatisPlusConfig
 * @Author: Jack_Li
 * @Date: 2024/7/7 16:44
 */

@Configuration
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor interceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }

}
